package com.xq.shop.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xq.shop.dao.IMenuDAO;
import com.xq.shop.po.Menu;
import com.xq.shop.util.HibernateUtil;

@Repository
@SuppressWarnings("unchecked")
public class MenuDAO extends BaseDAO<Menu> implements IMenuDAO {

	@Override
	public List<Menu> getByPID(Long pID) {
		return HibernateUtil.getTemplate().find(" from Menu where parent_id=?", pID);
	}
}
